<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>管理员查看所有维修人员信息</title>
</head>
<body>、
<!--照片传递还没搞，先随便传递-->
<p style="color: red" th:text="${msg}"> </p>
<a th:href="@{/adm/toAddRepairman}">添加维修人</a>
<table>
    <tr>
        <th>维修人工号</th>
        <th>姓名</th>
        <th>联系电话</th>
        <th>照片</th>
        <th>操作</th>

    </tr>
    <!--/*@thymesVar id="repairmanPage" type=""*/-->
    <tr th:each="repairman:${repairmanPage.records}" >
        <td th:text="${repairman.userId}">Onions</td>
        <td th:text="${repairman.repairmanName}">Onions</td>
        <td th:text="${repairman.repairmanTelephone}">Onions</td>
        <td th:text="${repairman.repairmanPhoto}">Onions</td>
        <td th:text="${repairman.repairmanPhoto}">Onions</td>
        <td><a th:href="@{/adm/deleteRepairman(deleteId=${repairman.userId})}">删除</a>
            <a th:href="@{/adm/toUpdateRepairman(repairmanid=${repairman.userId})}">修改</a></td>
    </tr>
</table>
当前第[[${repairmanPage.current}]]页 总计 [[${repairmanPage.pages}]]页
共[[${repairmanPage.total}]]条记录<br>
<ul>
    <li class="prev disabled"><a
            th:href="@{/adm/checkRepairmans(pn=${(repairmanPage.current)-1})}">←
        Previous</a></li>
    <!--                                                ${num == repairmanPage.current?'active':''}将当前页页数的方框高亮，类似于三目运算-->
    <!--                                                num:${#numbers.sequence(1,5)}显示多少个页码方框,这个例子是显示1到5的页码方框 -->
    <li th:class="${num == repairmanPage.current?'active':''}"
        th:each="num:${#numbers.sequence(1,5)}">
        <a th:href="@{/adm/checkRepairmans(pn=${num})}">[[${num}]]</a>
    </li>
    <li class="next"><a
            th:href="@{/adm/checkRepairmans(pn=${repairmanPage.pages})}">End </a>
    </li>
    <li class="next"><a
            th:href="@{/adm/checkRepairmans(pn=${repairmanPage.current+1})}">Next
        → </a></li>
</ul>
</body>
</html>